Shoots to the end, goes past it by over a third of the distance, then wobbles round it with smaller and smaller swings until it rests - like a spring let go. The number leaves the range from the start to the end.
EASE_ELASTIC_OUT: constantThe "elastic out" curve for tween and tween_to: a spring let go. It shoots to the end, goes a long way past it, and then wobbles round it with smaller and smaller swings, each about a third as big as the one before, until it rests. After a quarter of the time it is at 0.91, after half at 1.02, and after three quarters at 1.01.
Most curves keep the number between from and to. This one does not. The first swing goes about 37% of the distance past to, and the swings after it cross to again and again before they die away: a number tweened to 100 from 0 shoots up to about 137, falls back to about 87, up to about 105, and so on, until it settles on 100.
When the number is a position, that is the whole point: a jelly, a spring, a menu that wobbles into place. When the number has to stay in a range it is a problem, and a bigger one than back's, because the swings are bigger:
tween_to(volume, 100, 90, EASE_ELASTIC_OUT); // the volume goes to 137 and wobbles: don't do this to a number with limitsFor a number that must stay between its two ends, use a sine or quad curve, or a bounce, which never goes outside them. It does arrive exactly: after the end the number is exactly to, every frame.


The same tween three ways, one row for each of EASE_ELASTIC_IN, EASE_ELASTIC_OUT and EASE_ELASTIC_IN_OUT. The ball's height is the number (like tween_to(y, ...) moving something down), and it drifts right at a steady speed only so that the shape can be seen. The dim line is where the number starts and the green line is where it ends: the ball goes a long way past the green line (and, for the in, behind the dim one). Real pictures from a Game Boy Advance ROM, 4 frames apart, played at the speed of the console. A viewer that does not animate shows the first picture, the finished one.
tween_to(x, x + 100, 70, EASE_ELASTIC_OUT);The walker shoots about 137 pixels to the right (37 too many), swings back to about 87, forward to about 105, and so on in smaller and smaller wobbles, and comes to rest exactly 100 pixels from where it began.
The one to reach for: a pop-up that wobbles into place, a rubbery logo, a button that jiggles when you press it. Give it a longer time than you would give a plain curve: the wobbles need room, and with too few frames they turn into a shake.
An elastic curve does more maths than the others: a sine and a fading factor on every frame it is read. That is fine for the handful of tweens a screen has at once, and a game that uses none of the elastic curves is not made any slower by them.